<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<html>
<head>
    <title>Create Game</title>

    <link
            href="${pageContext.servletContext.contextPath}/resources/css/bootstrap.min.css"
            rel="stylesheet">

</head>
<body>

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span> <span
                    class="icon-bar"></span> <span class="icon-bar"></span> <span
                    class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href='<spring:url value="/" htmlEscape="true"/>'>
                Kaiji
            </a>
        </div>

        <ul class="nav navbar-nav navbar-right">
            <li><a href="?lang=en">en</a></li>
            <li><a href="?lang=ru">ru</a></li>
        </ul>
    </div>
</div>

<br> <br> <br>

<div class="container">

    <div class="row">
        <center>

            <spring:url value="/game/new/join" var="url"/>
            <form action="${url}" method="GET">
                <table>
                    <tr>
                        <td>
                            <div style="display:inline-block;width:150px">Game name to join :</div>
                        </td>
                        <td><input type="text"  id="gameName" name="gameName"  size="25"/></td>>

                    </tr>


                    <tr>
                        <td>
                            <div style="display:inline-block;width:150px">Player name</div>
                        </td>
                        <td><input type="text"  id="playerName" name="playerName" size="25"/></td>>

                    </tr>



                </table>

                <input type="submit">

            </form>

        </center>
    </div>

</div>

</body>


</html>
